<template>
  <div class="mo-playerku">
    <div class="mo-playerku-search">
      <div class="search-input">
        <input type="text" placeholder="搜索一下吧" />
        <div class="search-auto">
          <div class="search-auto-item">11</div>
          <div class="search-auto-item">11</div>
          <div class="search-auto-item">11</div>
          <div class="search-auto-item">11</div>
          <div class="search-auto-item">11</div>
        </div>
      </div>
      <button>搜索</button>
    </div>
    <div class="search-tag">
      <span>鬼畜</span>
      <span>二次元</span>
      <span>鬼畜</span>
      <span>鬼畜</span>
    </div>
    <h3>为您搜索到以下内容</h3>
    <div class="search-main">
      <div class="search-main-item" v-for="(v, i) in videoList" :key="i">1</div>
    </div>
  </div>
</template>
<script>
export default {
  name: "moPlayerKu",
  data() {
    return {
      videoList:[1,2,3,4,5,6,7,8,9,10,11,12]
    };
  }
};
</script>
<style lang="scss" scoped>
.mo-playerku {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  .mo-playerku-search {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 80px;
    padding-left: 15px;
    .search-input {
      position: relative;
      .search-auto {
        position: absolute;
        top: 32px;
        left: 0px;
        width: 300px;
        height: 0px;
        border: 1px solid black;
        transition: all 0.4s ease-in-out;
        box-sizing: border-box;
        opacity: 0;
        background-color: white;
        overflow: hidden;
        .search-auto-item {
          display: flex;
          align-items: center;
          height: 30px;
          width: 100%;
          text-align: left;
          text-indent: 4px;
          cursor: pointer;
          // background-color: white;
          color: rgba(0, 0, 0, 0.5);
          &:hover {
            color: black;
          }
        }
      }
      input {
        position: relative;
        width: 300px;
        height: 32px;
        outline: none;
        font-size: 14px;
        text-indent: 4px;
        border: 1px solid black;
        border-radius: 2px;
        box-sizing: border-box;
        &:focus {
          box-shadow: 0px 0px 3px black;
        }
        &:focus ~ .search-auto {
          height: 150px;
          opacity: 1;
          transition: all 0.4s ease-in-out;
        }
      }
    }

    button {
      height: 32px;
      padding-left: 20px;
      padding-right: 20px;
      border-radius: 2px;
      background-color: black;
      outline: none;
      border: 0px;
      color: white;
      cursor: pointer;
    }
  }
  .search-tag {
    padding-top: 10px;
    span {
      cursor: pointer;
      &:hover {
        color: pink;
      }
    }
    span:not(:nth-last-child(1)) {
      padding-right: 10px;
    }
  }
  h3 {
    width: 70%;
    min-width: 945px;
    text-align: left;
    margin-bottom: 10px;
  }
  .search-main {
    display: flex;
    flex-wrap: wrap;
    width: 70%;
    min-width: 945px;
    min-height: 200px;
    justify-content: flex-start;
    // background-color: aqua;
    .search-main-item{
      width: 19%;
      min-width: 170px;
      height: 120px;
      background-color: red;
      margin-bottom: 12px;  
      &:not(:nth-of-type(5n)){
        margin-right: 1.25%;
      }
    }
  }
}
</style>